package com.bestcem.xm.ticket.dao.mapper;

import com.bestcem.xm.ticket.entity.mysql.NotifySettingDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 公司的通知方式记录表 mapper
 *
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021/9/17 16:44
 */
@Mapper
public interface NotifySettingDaoMapper {

    NotifySettingDO findByOrgId(String orgId);

    NotifySettingDO findByNotifySettingId(String notifySettingId);

    void insert(NotifySettingDO notifySettingDO);

    Long deleteByNotifySettingId(String notifySettingId);

    void updateByOrgId(NotifySettingDO notifySettingDO);

    Long deleteByIdListAndOrgId(List<String> ids, String orgId);
}